package net.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.dao.ToleranciaRubroDao;
import net.model.ToleranciaRubro;
import net.service.ToleranciaRubroManager;

@Service
public class ToleranciaRubroManagerImpl implements ToleranciaRubroManager {

	@Autowired ToleranciaRubroDao toleranciaRubroDao;
	
	@Transactional
	public List<ToleranciaRubro> getAllToleranciaRubro() {
		// TODO Auto-generated method stub
		return toleranciaRubroDao.getAllToleranciaRubro();
	}

	@Transactional
	public void saveToleranciaRubro(ToleranciaRubro toleranciaRubro) {
		toleranciaRubroDao.saveToleranciaRubro(toleranciaRubro);
	}

}
